// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import VueRouter from 'vue-router'
import App from './App'
import axios from 'axios'
import router from './router'
import store from './store'
import FastClick from 'fastclick'
import vueSwiper from 'vue-awesome-swiper'
import BaiduMap from 'vue-baidu-map'
import './utils/page-title'
import './utils/scroll'
import 'swiper/dist/css/swiper.css'
import { ToastPlugin, LoadingPlugin } from 'vux'
import 'vant/lib/index.css';
import { Collapse, CollapseItem, Cell, Overlay, Icon, SwipeCell, Button, Dialog, ImagePreview } from 'vant';

Vue.use(Collapse).use(CollapseItem).use(Cell).use(Overlay).use(Icon).use(SwipeCell).use(Button).use(Dialog).use(ImagePreview);
Vue.use(ToastPlugin).use(LoadingPlugin)
Vue.use(VueRouter)
Vue.use(vueSwiper)
Vue.use(BaiduMap, {
    ak: 'Kw8BOCY7sXQjCCZqYLEvxuPEFbMl4jSv'
});

//全局组件
import CHeader from '@/components/Header/Header';
import CFooter from '@/components/Footer/Footer';
Vue.component('c-header', CHeader)
Vue.component('c-footer', CFooter)

//解决移动端点击延迟
FastClick.attach(document.body)

Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
    router,
    store,
    render: h => h(App)
}).$mount('#app-box')
